package com.example.yskjproject.utils;

import android.content.Context;
import android.text.TextUtils;

import com.example.yskjproject.view.dialog.LoginDialogHelper;

/**
 * LoginDialogShowUtlis
 * <p>
 * 作者：zx
 * 创建时间：2024/4/25
 */
public class LoginDialogShowUtil {


    private static LoginDialogHelper loginDialogHelper;

    /**
     * 显示登录dialog
     */
    public static boolean dialogShow(Context context) {
        if (TextUtils.isEmpty(SpCashUtils.getInstance().getToken())) {
            loginDialogHelper = new LoginDialogHelper(context);
            loginDialogHelper.show();
            return false;
        }
        return true;

    }

}
